home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Languages Suite
/
ProgLangD.iso
/
Borland Visual dBASE Professiona v7.0
/
DATA1.CAB
/
Sample_dBASE
/
Mugs
/
Toolbar.wfm
< prev
Wrap
Text File
|
1997-11-20
|
3KB
|
148 lines
//--------------------------------------------------------------
//
// Toolbar.wfm - Mugs Sample Application
//
// Dialog for customizing the Mugs application toolbars
//
// Dependencies: MUGS.PRG
// MUGBARS.PRG
//
//
// Visual dBASE Samples Group
//
// $Revision: 1.6 $
//
// Copyright (c) 1997, Borland International, Inc.
// All rights reserved.
//
//---------------------------------------------------------------
SET TALK OFF
** END HEADER -- do not remove this line
//
// Generated on 09/20/97
//
parameter bModal
local f
f = new TOOLBARForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class TOOLBARForm of FORM
with (this)
scaleFontSize = 8
scaleFontBold = false
height = 6.2105
left = 40
top = 8
width = 35.8333
text = "Customize Toolbar"
readModal = class::FORM_READMODAL
endwith
this.CHECKLARGE = new CHECKBOX(this)
with (this.CHECKLARGE)
height = 1
left = 3
top = 1
width = 18
text = "Large Buttons"
metric = 0
colorNormal = "WindowText/BtnFace"
fontSize = 8
value = false
group = true
endwith
this.CHECKFLAT = new CHECKBOX(this)
with (this.CHECKFLAT)
height = 1
left = 3
top = 2.3684
width = 16
text = "Flat Buttons"
metric = 0
colorNormal = "WindowText/BtnFace"
fontSize = 8
value = true
group = true
endwith
this.CHECKHINTS = new CHECKBOX(this)
with (this.CHECKHINTS)
height = 1
left = 3
top = 3.7895
width = 16
text = "Show Hints"
metric = 0
colorNormal = "WindowText/BtnFace"
fontSize = 8
value = true
group = true
endwith
this.BUTTONOK = new PUSHBUTTON(this)
with (this.BUTTONOK)
height = 1.2105
left = 21
top = 1.4211
width = 12
text = "OK"
metric = 0
default = true
fontSize = 8
group = true
endwith
this.BUTTONCANCEL = new PUSHBUTTON(this)
with (this.BUTTONCANCEL)
onClick = {; this.form.close() ; this.form.release()}
height = 1.2105
left = 21
top = 3.3158
width = 12
text = "Cancel"
metric = 0
fontSize = 8
group = true
endwith
function BUTTONOK_onClick
local appBars
appBars = this.form.app.toolbars
if ( ( appBars.large <> this.form.checkLarge.value ) or ;
( appBars.hints <> this.form.checkHints.value ) or ;
( appBars.flat <> this.form.checkFlat.value ) )
appBars.hints = this.form.checkHints.value
appBars.large = this.form.checkLarge.value
appBars.flat = this.form.checkFlat.value
appBars.reset()
endif
return ( this.form.close() )
// {Linked Method} form.readModal
function Form_ReadModal
// Setup dependencies only when called by the the Mugs application
if ( TYPE("this.app") == "O" )
with ( this )
CHECKFLAT.value := this.app.toolbars.flat
CHECKLARGE.value := this.app.toolbars.large
CHECKHINTS.value := this.app.toolbars.hints
BUTTONOK.onClick := class::BUTTONOK_onClick
endwith
endif
return TOOLBARFORM::ReadModal()
endclass